package Game;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;
import Levels.Level1;
import Levels.LevelLoader;

public class Mainth extends GameCanvas{
	public static LevelLoader level=new LevelLoader();
	
	public static void main(String[] args){
		Mainth Canvas=new Mainth(750,400);
		JFrame frame=new JFrame();
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setResizable(false);
		frame.add(Canvas);
		frame.pack();
		frame.setSize(750, 400);
		frame.setVisible(true);
	}
	public Mainth(int w,int h){
		super(w,h);
		this.addKeyListener(this);
	}
	void Update() {
		level.Level().update();
	}
	void Paint(Graphics g) {
		level.Level().paint(g);
	}
}